package com.example.pojo;

import java.math.BigDecimal;

public class Employee {
    private Integer id;
    private String name;
    private BigDecimal sal;
    private String dept;

    // 补充完整的 Getter 和 Setter
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public BigDecimal getSal() { return sal; }
    public void setSal(BigDecimal sal) { this.sal = sal; }

    public String getDept() { return dept; }
    public void setDept(String dept) { this.dept = dept; }

    // 可选：补充 toString()
    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sal=" + sal +
                ", dept='" + dept + '\'' +
                '}';
    }
}